import numpy as np
import cv2

# 创建一个标准数组
a = np.zeros((100, 100), dtype=np.uint8)
print("NumPy version:", np.__version__)
print("Type:", type(a))
print("Module:", a.__class__.__module__)

# 测试 OpenCV 是否接受
try:
    b = cv2.resize(a, (50, 50))
    print("✅ OpenCV accepts this array")
except Exception as e:
    print("❌ OpenCV rejects:", e)